﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using JM.JCY.Common;
using NCS.IConnect.PolicyInjection.CallHandlers;
using JM.JCY.BusinessComponent;
using JM.JCY.BusinessEntity;
using JM.JCY.DataAccess;

namespace JM.JCY.BusinessFacade
{
    public class PerformanceCaseBF : JCYBusinessFacadeBase<PerformanceCaseBC>, IPerformanceCase
    {
        public PerformanceCaseBF()
            : base(new PerformanceCaseBC())
        {
        }

        public void UpdatePerformanceCase(PerformanceCaseDataSet.T_PerformanceCaseDataTable dt)
        {
            this.BusinessComponent.UpdatePerformanceCase(dt);
        }

        public PerformanceCaseDataSet.T_PerformanceCaseDataTable GetPerformanceCase(int caseId, string name)
        {
            return this.BusinessComponent.GetPerformanceCase(caseId, name);
        }

        public void UpdateLiangHuaStatistics(PerformanceCaseDataSet.T_LiangHuaStatisticsDataTable dt)
        {
            this.BusinessComponent.UpdateLiangHuaStatistics(dt);
        }

        public PerformanceCaseDataSet.T_LiangHuaStatisticsDataTable GetLiangHuaStatistics(int caseId, string year, string dept, string name)
        {
            return this.BusinessComponent.GetLiangHuaStatistics(caseId, year, dept, name);
        }
    }
}
